package ua.org.extjsbuilder.parser.runtime.instructions;

import java.io.IOException;
import java.io.Writer;

import ua.org.extjsbuilder.parser.IInstruction;
import ua.org.extjsbuilder.parser.IScope;
import ua.org.extjsbuilder.parser.JSObject;

public class UnaryOperator implements IInstruction {
	public static final String INCREMENT = "++";
	public static final String DECREMENT = "--";
	public static final String NOT = "!";
	
	private String type;
	//private IInstruction arg;

	public UnaryOperator(String type, IInstruction arg) {
		this.type = type;
		//this.arg = arg;
	}

	public void compile(Writer out, boolean optimize) throws IOException {
		// TODO Auto-generated method stub
		
	}

	public JSObject execute(IScope scope, JSObject[] args) {
		// TODO Auto-generated method stub
		return null;
	}

	public String getName() {
		return type;
	}
}
